/** Map entity base class.
@param name The name of this entity.
@param c Character used for this entity.
@param fg Foreground color.
@param bg Background color.
@param blockWalk Does this entity block walkability?
@param blockVis Does this entity block visibility?
*/
function Entity(name, c, fg, bg, blockWalk, blockVis)
{
	this.name = name;
	this.character = c;
	this.fg = fg;
	this.bg = bg;
	this.blockWalk = blockWalk;
	this.blockVis = blockVis;
	this.x = 0;
	this.y = 0;
	this.parent = null;
}
Entity.prototype =
{
	isEntity: true,
	/** Called when an entity tries to use this entity.
	@param user The entity using this entity.
	@param target The entity being used on (optional).
	*/
	use: function(user, target)
	{
	},
	/** Called when the entity arrives at a position on the sector map.
	 *@param isLoad True if this call was the result of map generation or loading, false otherwise.
	 */
	onArriveAtPosition: function(isLoad)
	{
	},
	/** Called when the entity leaves a position on the sector map.
	 */
	onLeavePosition: function()
	{
	}
};
